/// <reference path="../../Resources/js/jquery/jquery.debug.js" />

Type.registerNamespace("BM");

BM.RemovalButton = {
    switchImg: function(item, state) {
        if (state == 1) {
            item.src = item.src.replace(/_1/, "_2");
        } else {
            item.src = item.src.replace(/_2/, "_1");
        }
    },

    run: function(node) {
        if (!confirm(BM.Messages["ReallyDelete"])) return;
        MItem.remove(node);
    }
}